package com.ktjiaotu.pojo;

import java.io.Serializable;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-06-03
 * @Description:
 * @Version: 1.0
 */
public class Person implements Serializable {
    private String name;
    static final int age = 30;
    protected String address;
    public String message;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    static final int getAge() {
        return age;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    protected String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private void silentMethod() throws Exception {
        System.out.println("这是悄悄话");
    }

    public Person() {
    }

    private Person(String name) {
        this.name = name;
    }

    protected Person(String name, String address, String message) {
        this.name = name;
        this.address = address;
        this.message = message;
    }

    @Override
    public String toString() {
        return "Person{" +
                "age" + age + "\"+" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
